package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper {
    int insert(Shop record);

    List<Shop> selectAll();

    Shop selectShopCatByUserIdAndArticleId(@Param("userId") Long userId, @Param("articleId") Long articleId);


    void updateByPrimaryKey(@Param("userId") Long userId, @Param("articleId") Long articleId);

    List<Shop> getArticleDetailByUserId(Long userId);

    List<Shop> getArticleByUserId(Long userId);
}